#引入turtle
import turtle
#设置展示的页面大小，起始地点，起始颜色
turtle.setup(650, 350, 200, 200)
turtle.penup()
turtle.fd(-250)
turtle.pendown()
turtle.pensize(25)
turtle.pencolor("purple")
turtle.seth(-40)
#进行四次循环
for i in range(4):
    turtle.circle(40, 80)
    turtle.pencolor("purple")
    turtle.circle(-40, 80)
    turtle.pencolor("red")
#最后一段的设置
turtle.circle(40, 40)
turtle.fd(40)
turtle.circle(16, 180)
turtle.fd(40 * 2 / 3)
turtle.done()